package com.baifc.netty.rpc.provider;

import com.baifc.netty.rpc.api.IRpcMathService;

/**
 * projectName: nettyrpc
 * packageName: com.baifc.netty.rpc.provider
 * Created: 2019/6/22.
 * Auther: baifc
 * Description:
 */
public class RpcMathService implements IRpcMathService {

    public int add(int a, int b) {
        return a + b;
    }

    public int sub(int a, int b) {
        return a - b;
    }

    public int mult(int a, int b) {
        return a * b;
    }

    public int div(int a, int b) {
        return a / b;
    }
}
